<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'MyJsp.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="styles.css">

  </head>
  
  <body>
  <div style="width: 700px;height: auto;margin: auto;">
  
 <table width="100%" align="center" cellspacing="1" border="1">
                    	<tr>
                    		<th width="20%">车系关系</th>
                    		<th width="20%">支持度</th>
                    		<th width="20%">加权支持度</th>
                    		<th width="20%">置信度</th>
                    		<th width="20%">加权置信度</th>
                    	</tr>
                    	<c:forEach var="apriori" items="${allapriori}">
                    	<tr>
                    		 <td align="center">${apriori.describe}</td>
                    		 <td align="center">${fn:substring(apriori.support,0,5)}</td>
                    		 <td align="center">${fn:substring(apriori.weightSupport,0,5)}</td>
                    		 <td align="center">${fn:substring(apriori.confidence,0,5)}</td>
                    		 <td align="center">${fn:substring(apriori.weightConfidence,0,5)}</td>
                    	</tr>
                    	 </c:forEach>
                    </table>
                    <br/>
                    <div style="color: blue">根据以上数据分析得出存在关系的车系为：${session.demioTypes }</div>
                    <br/>
                    <table style="font-size: 16px;color: red;">
                    	<%for(int i=0;i<13;i++){ request.setAttribute("i", i*4);%><tr>
						<s:iterator value="#session.demioList" var="demioBean" begin="#request.i" end="#request.i+3">
                    		<td width="25%"><s:property value="#demioBean.demioTypes"/>:<s:property value="#demioBean.brand"/>-<s:property value="#demioBean.department"/>；</td>
                    	</s:iterator></tr><% }%>
                    </table>
                  <br/><br/><br/><br/>
                </div>
</body>
</html>
